package com.syz.mall.service;

import com.syz.mall.pojo.Category;
import com.syz.mall.pojo.query.CategoryQuery;
import com.syz.mall.util.LayUITableResult;

import java.util.List;

public interface ICategoryService {
    LayUITableResult selectByPage(CategoryQuery categoryQuery);

    boolean deleteAll(Integer[] ids);

    boolean deleteById(Integer id);

    boolean add(Category category);

    Category selectById(Integer id);

    List<Category> selectAllTop();

    List<Category> selectAllSec(Integer topId);

    Category selectTopById(Integer id);

    boolean update(Category category);

    boolean changeStatus(Integer id,Integer status);
}
